<template>
  <div class="donate">
    <div class="row">
      <el-card class="box-card">
        <div class="support-img">
          <img
            crossorigin="anonymous"
            alt="感谢支持"
            src=""
          />
        </div>
        <br />
      </el-card>
    </div>
    <div class="row">
      <el-card class="box-card">
        <el-table :data="this.database.thankYouList">
          <el-table-column prop="time" label="致谢列表(更新周期: <3天)"></el-table-column>
          <el-table-column prop="reason" label></el-table-column>
        </el-table>
      </el-card>
    </div>
  </div>
</template>

<script>
  import _ from "lodash"
  import http from "~/gui/src/library/http"

  export default {
    name: 'donate',
    data(){
        return {
          database:{
            thankYouList:[]
          }
        }
    },
    async mounted(){
      await this.asyncGetDonateList()
    },
    methods:{
      async asyncGetDonateList(){
        this.database.thankYouList = await http.asyncGet("https://www.easy-mock.com/mock/5c680a151b1cdb683581355c/zhihuhelp/thank_you/list")
      }
    }
  }
</script>

<style lang="less" scoped>
.donate {
  display: flex;
  width: 80vw;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  .row {
    flex: 12;
  }
  .box-card {
    width: 40vw;
  }
  .support-img {
    display: flex;
    width: 30vw;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    img {
      max-width: 60vw;
      max-height: 40vw;
    }
  }
}
</style>
